package com.zrsx.searchmodel.mapper;

import com.zrsx.searchmodel.common.vo.DimensionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface CreditDimensionMapper {

    @Select("select dimension_score from credit_score_dimension where user_id = #{id} and dimension_type = #{dimension}")
    Integer getCreditDimension(Integer id, String dimension);

    @Select("select dimension_type, dimension_score, dimension_desc from credit_score_dimension where user_id = #{id}")
    List<DimensionVO> getAllDimensions(Integer id);
}
